新增/修改配置
请求地址
/v2/webservice/table/set-periodically-cleanup-table
请求方法
Post
请求参数说明
| 参数名称 | 类型 | 是否必填 | 说明 |
|---|
| app_id | number | 是 | 项目ID |
| tables | config数组 | |
参数配置项说明
| 参数名称 | 类型 | 是否必填 | 说明 |
|---|
| zone_id | number | | |
| table_name | string | | |
| start_time | | | 生效时间 |
| cleanup_period | | | 清理周期,单位:秒, 最小1800秒 |
示例
{
"app_id": 2,
"tables": [
{
"zone_id": 134,
"table_name": "table_list1",
"start_time":"2022-09-20 17:05:05",
"cleanup_period":1800
}
]
}
返回参数说明
| 参数名称 | 类型 | 说明 |
|---|
| task_id | number | 任务ID |
| result | | 成功生成任务标识位, 0为成功 |
成功返回, 生成任务
{
"code": 0,
"request_id": "b6047b80-370c-48f5-b42b-40565b3fb81b",
"data": [
{
"app_id": 2,
"zone_id": 134,
"table_name": "table_list1",
"table_type": 0,
"task_id": 13776,
"result": 0,
"msg": "success"
}
]
}
失败返回
{
}